package com.ruoyi.hr.service.impl;

import java.util.List;

import com.ruoyi.hr.common.utils.BaseThreadLocal;
import com.ruoyi.hr.domain.dto.HrLogAddDto;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hr.mapper.HrOperateLogMapper;
import com.ruoyi.hr.domain.HrOperateLog;
import com.ruoyi.hr.service.IHrOperateLogService;

/**
 * HR操作日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-05
 */
@Service
public class HrOperateLogServiceImpl implements IHrOperateLogService 
{
    @Autowired
    private HrOperateLogMapper hrOperateLogMapper;

    /**
     * 查询HR操作日志
     * 
     * @param id HR操作日志主键
     * @return HR操作日志
     */
    @Override
    public HrOperateLog selectHrOperateLogById(Long id)
    {
        return hrOperateLogMapper.selectHrOperateLogById(id);
    }

    /**
     * 查询HR操作日志列表
     * 
     * @param hrOperateLog HR操作日志
     * @return HR操作日志
     */
    @Override
    public List<HrOperateLog> selectHrOperateLogList(HrOperateLog hrOperateLog)
    {
        return hrOperateLogMapper.selectHrOperateLogList(hrOperateLog);
    }

    /**
     * 新增HR操作日志
     * 
     * @param hrOperateLog HR操作日志
     * @return 结果
     */
    @Override
    public int insertHrOperateLog(HrOperateLog hrOperateLog)
    {
        return hrOperateLogMapper.insertHrOperateLog(hrOperateLog);
    }

    /**
     * 修改HR操作日志
     * 
     * @param hrOperateLog HR操作日志
     * @return 结果
     */
    @Override
    public int updateHrOperateLog(HrOperateLog hrOperateLog)
    {
        return hrOperateLogMapper.updateHrOperateLog(hrOperateLog);
    }

    /**
     * 批量删除HR操作日志
     * 
     * @param ids 需要删除的HR操作日志主键
     * @return 结果
     */
    @Override
    public int deleteHrOperateLogByIds(Long[] ids)
    {
        return hrOperateLogMapper.deleteHrOperateLogByIds(ids);
    }

    /**
     * 删除HR操作日志信息
     * 
     * @param id HR操作日志主键
     * @return 结果
     */
    @Override
    public int deleteHrOperateLogById(Long id)
    {
        return hrOperateLogMapper.deleteHrOperateLogById(id);
    }

	@Override
	public void insertHrOperateLogBatch(List<HrOperateLog> collect) {
		hrOperateLogMapper.insertHrOperateLogBatch(collect);

	}


}
